abod99119911 Posted August 8, 2014 Posted August 8, 2014 im asking about how to script car spawn for example when any player git inside this marker get bike:NRG-500 can any 1 here script it for me please
Mr_Moose Posted August 8, 2014 Posted August 8, 2014 Is this what you're looking for: https://community.multitheftauto.com/index.php?p=resources&s=details&id=8338? MTA Community | GitHub | 99Stack Forum
abod99119911 Posted August 8, 2014 Author Posted August 8, 2014 Is this what you're looking for: https://community.multitheftauto.com/index.php?p=resources&s=details&id=8338? i need simple script
Mr_Moose Posted August 8, 2014 Posted August 8, 2014 That one is as simple as it could possibly be, don't be afraid of long data tables or detailed GUI code, read it line by line and you'll find out how it works pretty fast. There are other spawn systems too but most of them doesn't use tables and are full of bugs. MTA Community | GitHub | 99Stack Forum
xXMADEXx Posted August 8, 2014 Posted August 8, 2014 Here is a basic code to get you started: local maker = createMarker ( 0, 0, 11, "cylinder", 2, 255, 255, 255 ,255 ) local vehicles = { } addEventHandler ( "onMarkerHit", marker, function ( p ) if ( p and getElementType ( p ) == "player" and not isPedInVehicle ( p ) ) then -- destroy their old vehicle, if it exists if ( isElement ( vehicles [ p ] ) ) then destroyElement ( vehicles [ p ] ) end -- create the new vehicle vehicles [ p ] = createVehicle ( 411, 0, 0, 20 ) end end ) The Ultimate Lua Tutorial! | MTA PHP SDK
abod99119911 Posted August 8, 2014 Author Posted August 8, 2014 Here is a basic code to get you started: local maker = createMarker ( 0, 0, 11, "cylinder", 2, 255, 255, 255 ,255 ) local vehicles = { } addEventHandler ( "onMarkerHit", marker, function ( p ) if ( p and getElementType ( p ) == "player" and not isPedInVehicle ( p ) ) then -- destroy their old vehicle, if it exists if ( isElement ( vehicles [ p ] ) ) then destroyElement ( vehicles [ p ] ) end -- create the new vehicle vehicles [ p ] = createVehicle ( 411, 0, 0, 20 ) end end ) so on line 1.local maker = createMarker ( 0, 0, 11, "cylinder", 2, 255, 255, 255 ,255 ) what does it mean ? sorry for too much questions but im new scriptor can u explane that language
Max+ Posted August 8, 2014 Posted August 8, 2014 local maker = createMarker to make a marker if you hit the marker and your not in a vehicle then show the gui window to Select Cars . . . - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
[UCG]Mike Posted August 9, 2014 Posted August 9, 2014 you mean it https://community.multitheftauto.com/in ... ls&id=7486 ? You are now in Mark Zone !!!
xXMADEXx Posted August 9, 2014 Posted August 9, 2014 Here is a basic code to get you started: local maker = createMarker ( 0, 0, 11, "cylinder", 2, 255, 255, 255 ,255 ) local vehicles = { } addEventHandler ( "onMarkerHit", marker, function ( p ) if ( p and getElementType ( p ) == "player" and not isPedInVehicle ( p ) ) then -- destroy their old vehicle, if it exists if ( isElement ( vehicles [ p ] ) ) then destroyElement ( vehicles [ p ] ) end -- create the new vehicle vehicles [ p ] = createVehicle ( 411, 0, 0, 20 ) end end ) so on line 1.local maker = createMarker ( 0, 0, 11, "cylinder", 2, 255, 255, 255 ,255 ) what does it mean ? sorry for too much questions but im new scriptor can u explane that language Line 1 is telling the script to create a maker element, and define it to the variable marker. If you want to get a better understanding of Lua, you can try reading this to help you out: viewtopic.php?f=148&t=75501 The Ultimate Lua Tutorial! | MTA PHP SDK
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now