
DonPro
Members-
Posts
125 -
Joined
-
Last visited
Everything posted by DonPro
-
so if seat == 0 then i can put 30 seats there and i can have 30 people enter the bus to or?
-
hi, i got this script that create vehicles to an ACL group but i realy like it to allow passangers to enter vehicles. vehicle1 = createVehicle ( 431 , 1080.7998046875, -1775.599609375, 13.60000038147, 0, 0, 270 ) vehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ ) state = setVehicleDoorState ( vehicle, 255, 0, 0 ) setVehicleDamageProof ( vehicle, true ) setVehicleColor(vehicle1,191,76,0 , 27,27,27 ) function lockPrivate( player, seat, jacked ) local accName = getAccountName ( getPlayerAccount ( player ) ) if ( not isObjectInACLGroup ( "user."..accName, aclGetGroup ( "Vasity Bus" ) ) ) then cancelEvent ( ) outputChatBox ( "This vehicle belongs to Vasity Bus Services", player, 255, 0, 0, false ) else outputChatBox ( "", player, 255, 0, 0, false ) end end addEventHandler ( "onVehicleStartEnter", vehicle1, lockPrivate )
-
hmm, my plan once is to get the spawn up to class, and when the owner of a Gang/Squad invite a player to the gang he can use the spawn and the gate without that i have to go into the script and put him into there thats why i want this script to work as CLASS
-
This works when I use this code: setElementData ( getPlayerFromName("Duh"), "class", "Crip" ) Do i have to write all members who is allowed to use this when they are spawned as that class?
-
Try this code, this only open for players with element data "class" = "Crip": a51gate1 = createObject ( 3037, 2360.89, -1272.40, 24.89, 0, 0, 0 ) a51col = createColCircle ( 2360.69, -1271.90, 4 ) function opena51gates(thePlayer) if getElementData(thePlayer, "class") == "Crip" then moveObject (a51gate1, 2000, 2360.89, -1280.59, 24.89 ) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) function closea51gates(thePlayer) if getElementData(thePlayer, "class") == "Crip" then moveObject (a51gate1, 2000, 2360.89, -1272.40, 24.89 ) end end addEventHandler( "onColShapeLeave", a51col, closea51gates ) Now noone can use it
-
Hi Thanks both, but its still opens for all. the Spawn list is an .map file is that maby why its does not activate this Moving gate script?
-
Hey, i have been trying in a while now to get this Moving gate to be working ONLY for the Class spawn. but its a bug, when i spawn as test i see the gate is opening for this spawn to. someone that could help me with it? a51gate1 = createObject ( 3037, 2360.89, -1272.40, 24.89, 0, 0, 0 ) a51col = createColCircle ( 2360.69, -1271.90, 4 ) function opena51gates(thePlayer) if getElementData(source, "class") ~= "Crip" and getElementData(source, "class") ~= "Crip" and getElementData(source, "class") ~= "Crip" then moveObject (a51gate1, 2000, 2360.89, -1280.59, 24.89 ) end end addEventHandler( "onColShapeHit", a51col, opena51gates ) function closea51gates(thePlayer) if getElementData(source, "class") ~= "Crip" and getElementData(source, "class") ~= "Crip" and getElementData(source, "class") ~= "Crip" then moveObject (a51gate1, 2000, 2360.89, -1272.40, 24.89 ) end end addEventHandler( "onColShapeLeave", a51col, closea51gates ) I dont know if im gonna write the name on the skin or only the Class name but this script up here is only for the Skins
-
alraight, thanks bro i gonna try that. i know when im delete a object with smoke and go far away the smoke wont come out anymore.
-
okey, like when your removing an object with Smoke? i know thats what you have to do with stuff that smoke
-
Thanks you both so much!
-
hi i tryed to make this moving gate to an Command handler, it was an Event Handler. but i wanna keep the ACL group so no one elsn can use the command. i tryed to look on Wiki but i didnt understand how to make it to an Command handler. pleas help me. local gate = createObject(2893, -2055.69, 169.19, 27.89, 343, 0, 90) local marker = createMarker(-2056.60, 171, 27.89, "cylinder", 1, 255, 255, 255, 0) function isAclGroup(p,group) if p and getElementType(p) == "player" and type(group) == "string" then local Deadusergroup = getAccountName(getPlayerAccount(p)) if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup(group)) then return true else return false end else return false end end function addCommandHandler("lift") then end function moveGate(psource) if isAclGroup(psource,"SamCarTow") then moveObject(gate, 4000, -2055.69, 169.19, 29.89) end end addCommandHandler("onMarkerHit", marker, moveGate) function moveBack(pp) moveObject(gate, 4000, -2055.69, 169.19, 27.89) end addCommandHandler("onMarkerLeave", marker, moveBack)
-
This would work better to download vehicle mods I should say use gtainside, For example you can use this Rhino mod. Then make a script: function ReplaceVehicle ( ) outputChatBox ( "> replacing the rhino vehicle" ) txd = engineLoadTXD ( "rhino.txd" ) engineImportTXD ( txd, 432) dff = engineLoadDFF ( "rhino.dff", 0 ) engineReplaceModel ( dff, 432) end addEvent ( "replaceVeh", true ) addEventHandler ( "replaceVeh", getRootElement(), ReplaceVehicle ) so i can change color with this mod?. i wanna change color on the orginal Rhino and all vehicle.
-
So i make this one to EngineReplaceModel(vehicle1,0,0,0 ) ?
-
hi, i have always wondered how to change color on Rhino? pleas help!
-
hmm. i cant remove i cant remove both! pleas add some pics where u get it removed pleas.
-
ok ill try. its works for you?
-
no its not gone if i remove the ground eather.
-
its not working, is it a bug or what?
-
then im removing the ground.
-
Hi, i got problems with removing an object in LS docks im sure someone else also got this problem if its not just a bug. Pics: Trying to remove it - http://i.imgur.com/hp0lGwY.jpg?1 When removed i get this, and cant remove it - http://i.imgur.com/1Ff1kwF.jpg?1 i know its posible to remove it, i had a friend who got a base here same place, and i never saw that one. i have tested it in game, but when i got there i can see it still.
-
okey. i realy wanna learn how to script but im not that good in english and its hard to get started and look at Wiki when i dont understand anything about it you know. thats why im asking so much. im just making moving gates and mapping thats all but i wanna make an server to ^^ hehe
-
hello everyone. ehm i want an ACL spawn and i dont know how to make it. i tryed to make some codes on it but didnt work, the spawn is not a .LUA but a .MAP but i will put it as .LUA here to show u. "PST" friendlyfire="false"password="PST321"> "PST security will make sure that our land are safe." /> "0" green="255" blue="255" /> "PST Guard" id="165" > "1496.19" y="725.12" z="10.82" rot="180.49" /> "PST Security Guard" id="166" > "1496.19" y="725.12" z="10.82" rot="180.49" /> "3" ammo="3" /> "41" ammo="500" /> "23" ammo="120" /> "45" ammo="450" /> "31" ammo="500" /> "43" ammo="450" /> "245" y="-1224" z="90" /> "245" y="-1224" z="90" />
-
dude, i just freaking love u man! thanks it works now!