No vehicles loading +++ rep if helped - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: No vehicles loading +++ rep if helped (
/showthread.php?tid=607778)
No vehicles loading +++ rep if helped -
MrCallum - 23.05.2016
When I log into the server, the vehicles are not there except personal vehicles, so 'CreateVehicleEx's' are not showing up within game.
Re: No vehicles loading +++ rep if helped -
Danzou - 23.05.2016
i will give you a hint..
Streamer Plugin
http://www.convertffs.com/
I particularly, i use the function
PHP код:
public OnFilterScriptInit()
a file only to load:
Objects removed.
Objects and vehicles, etc..
Re: No vehicles loading +++ rep if helped -
AdrianG - 23.05.2016
You have already reached the limit of maximum vehicles on map. You have to use a streamer for vehicles.
Re: No vehicles loading +++ rep if helped -
Luis- - 23.05.2016
Hold on, so all the normal vehicles are there and are visible? Just the personal ones aren't? Sounds like a loading problem to me.
Re: No vehicles loading +++ rep if helped -
AdrianG - 23.05.2016
Use this command and tell us how many vehicles you have already created.
PHP код:
native IsValidVehicle(vehicleid);
// Count vehicles
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/countvehicles",true))
{
new
count,
msg[60];
for(new i; i < MAX_VEHICLES; i++)
{
if(IsValidVehicle(i)) count++;
}
format(msg, sizeof(msg), "* There are %d valid spawned vehicles on this server.", count);
SendClientMessage(playerid, 0x33CCCCFF, msg);
return 1;
}
return 0;
}
Or maybe you have reached the limit of 150 of vehicle models. Look at samp limits what write there.
Although the vehicle model limit in 0.3 is unlimited, if you use a large amount of vehicle models, you may notice parts of your mode become framey as vehicle models are dynamically loaded/unloaded. Keeping the number of vehicle models below 150 is a good idea. Maybe that is the thing that creates you problems.