Jump to content

vehicle spawner creator


Best-Killer

Recommended Posts

in 2 month ago i find spawner creator in mtasa Community i was not need it but now i need it any one give me that url he know spawner creator !! 

it's complied one as i remmeber but i just need it to know what i do with my script cuz i'm creating one but my problem i want know how selecet that vehicles be in spawner when player hit 

example : White Spawner (Free spawners) adding it NRG , infurnes , Sanchez .... , white spawner number 2 has only infurnes , sanchez 

for let you know guys i'll use SQL for make the script 

Thx to all who can help me 

Link to comment
  • MTA Anti-Cheat Team

You're asking 2 things on a different subject in here:

- someone to remind you of which spawner that was on Community/link you it

- wanting to know the inner workings, aka you'd favour to decompile it (won't get help with that here) or reproduce it with its features.

(At most you can get scripting help here to develop a similar script that fits your needs, for that)

 

It would've been better to create both questions in different forum sections (Resources, to ask for which one it was) and (Scripting, to get help patching it to your needs or develop similar) you can keep it like this (because what you want as script/need to get scripting support is reliant on identifying what resource it was) but I'm not sure if you'll see both questions answered to the best extent in that case.

Furthermore I would suggest you just think of possible functions that resource you're talking about had, list them up here and get help here to script something that re-assembles it as much possible. (even if someone manages to remind you, you'll never get an idea of those functions from a compiled script).. just think of the functionality you want and you may even get function suggestions.

Edited by Dutchman101
  • Like 1
Link to comment

lol you're not right  bro ;)

i was don't have any idea about that 

idea Spawners's Vehicles (that gridlist in gui ) 

look at this script i was searching for it -_-  please look at script screenshot to understand me what i was need ;) 

https://community.multitheftauto.com/index.php?p=gallery&s=show&pic=16109

now i got what i need ! it's just about Spawners's Vehicles

also i  was making that :~ but now really i'm trying to learn Lua ;) and thx for anyway 

Link to comment
  • MTA Anti-Cheat Team

So you got what you needed to find: https://community.multitheftauto.com/index.php?p=resources&s=details&id=10589

But from what you said in first post ;

1 hour ago, Best-Killer said:

but i just need it to know what i do with my script cuz i'm creating one but my problem i want know how selecet that vehicles be in spawner when player hit 

example : White Spawner (Free spawners) adding it NRG , infurnes , Sanchez .... , white spawner number 2 has only infurnes , sanchez 

for let you know guys i'll use SQL for make the script

 

I understood you also wanted to know more about the code inside to modify something with ''how select vehicles that be in spawner when player hit..'' so that's why I suggested to clear more up about the part in scripting support you appeared to ask for.

 

9 minutes ago, Best-Killer said:

lol you're not right  bro ;)

look at this script i was searching for it -_-  please look at script screenshot to understand me what i was need ;) 

https://community.multitheftauto.com/index.php?p=gallery&s=show&pic=16109

now i got what i need ! it's just about Spawners's Vehicles

Now you found your needed resource (congrats), and turn out not (be more clear) to want scripting support, this will be moved to Resources section.

Edited by Dutchman101
  • Like 1
Link to comment

So i think this what are you trying to do so read this example very well and understand it.

 

local aMarkerOne = createMarker ( .... )
local aMarkerTwo = createMarker ( .... )
setElementData ( aMarkerOne,'aVehicles',1 )
setElementData ( aMarkerTwo,'aVehicles',2 )
local aMyVehicles = {
	[1] = { aID,aID,aID };
	[2] = { aID,aID,aID };
}
addEventHandler ( 'onClientMarkerHit',resourceRoot,
	function ( aHit )
		if ( source == aMarkerOne or source == aMarkerTwo ) then
		if ( aHit and aHit == localPlayer and not isPedInVehicle(  aHit ) and getElementData ( source,'aVehicles' ) ) then
			guiSetVisible ( aWnd,true );
			guiGridListClear ( aGrid );
		for _,aV in ipairs ( aMyVehicles [ getElementData ( source,'aVehicles' ) ] ) do
				guiGridListSetItemText ( aGrid,guiGridListAddRow ( aGrid ),1,getVehicleNameFromModel ( aV ),false,false );
			end
		end
	end
end
);

 

Hope that help you make your script .

 

@Best-Killer

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...