Castillo Posted September 28, 2013 Share Posted September 28, 2013 Use this: removeWorldModel ( 8311, 10, 1276.8000488281, 1206.5, 13 ) Not sure if it'll work. Link to comment
Fantanic Posted September 28, 2013 Author Share Posted September 28, 2013 (edited) What if i find other objects , how do i know where what is i mean wich object it is edit : it didnt worked Edited September 28, 2013 by Guest Link to comment
Castillo Posted September 28, 2013 Share Posted September 28, 2013 Well, I had to search that one manually, so you'll have to do the same. Link to comment
Fantanic Posted September 28, 2013 Author Share Posted September 28, 2013 anyways it didnt removed it for me Link to comment
Fantanic Posted October 2, 2013 Author Share Posted October 2, 2013 deleted- Isomething about locking cars to team. Well it worked now but none is able to get in as passenger only the one in the team 'Admin' is How do i make it so they can get in as passenger? Link to comment
Castillo Posted October 2, 2013 Share Posted October 2, 2013 You have to check if 'seat' is different to '0', then stop the function. vehicle1 = createVehicle ( 602, 2279.1000976563, -1671.1999511719, 15.10000038147, 0, 0, 272 ) -----this car can be found at LS Grove Street near PoolBar vehicle = createVehicle ( modelID, x, y, z, rotX, rotY, rotZ ) state = setVehicleDoorState ( vehicle, 1, 1 ) setVehicleDamageProof ( vehicle, true ) -----car won't take damage (change it to false if you want to take damage) function lockPrivate( player, seat, jacked ) if ( source == vehicle1 ) then if ( seat ~= 0 ) then -- If the seat isn't '0' ( driver's seat ) return -- Stop the function from executing. end local playerTeam = getPlayerTeam ( player ) local oldTeamName = ( playerTeam and getTeamName ( playerTeam ) or "" ) if ( oldTeamName ~= "admin" ) then cancelEvent ( ) outputChatBox ( "This vehicle is locked for following team: admin ", player, 255, 0, 0, false ) else outputChatBox ( "Welcome to your vehicle,Sir!", player, 0, 255, 0, false ) end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), lockPrivate ) -----Made by Alen141(ingame name:Jimboy)------ -----Special thanks to : Solidsnake14(ingame name:Castillo)----- -----Visit SAUR Utopia RPG, IP: 128.204.203.103:22003----- -----Feel free to edit script on your own----- -----Don't remove credits----- Link to comment
myonlake Posted October 2, 2013 Share Posted October 2, 2013 It's a matter of relevancy but I want to point out that you can reduce the amount of lines by using the vehicle element inside the event handler instead of checking it inside the function. vehicle1 = createVehicle(602, 2279.1000976563, -1671.1999511719, 15.10000038147, 0, 0, 272) -- This car can be found at LS Grove Street near Pool Bar vehicle = createVehicle(modelID, x, y, z, rotX, rotY, rotZ) setVehicleDoorState(vehicle, 1, 1) setVehicleDamageProof(vehicle, true) -- Car won't take damage (change it to false if you want it to take damage) addEventHandler("onVehicleStartEnter", vehicle1, function(player, seat, jacked) if (seat ~= 0) then return end -- If the seat isn't '0' (driver's seat), then stop the function from executing local playerTeam = getPlayerTeam(player) local oldTeamName = (playerTeam and getTeamName(playerTeam) or "") if (oldTeamName ~= "admin") then cancelEvent() outputChatBox("This vehicle is locked for following team: admin", player, 255, 0, 0, false) else outputChatBox("Welcome to your vehicle, Sir!", player, 0, 255, 0, false) end end end ) -----Made by Alen141(ingame name:Jimboy)------ -----Special thanks to : Solidsnake14(ingame name:Castillo)----- -----Visit SAUR Utopia RPG, IP: 128.204.203.103:22003----- -----Feel free to edit script on your own----- -----Don't remove credits----- Link to comment
Fantanic Posted October 3, 2013 Author Share Posted October 3, 2013 Hello , Thank you , it does work perfectly Link to comment
Fantanic Posted October 4, 2013 Author Share Posted October 4, 2013 works very good , no errors , wanted special sirens but not needed. Link to comment
Fantanic Posted October 6, 2013 Author Share Posted October 6, 2013 I got a other question: i've i place a car and i exit it , and im somewhere others that if i do a command that i teleport to the car that i placed. Also is it posible to give police cars special sirens? i mean with special sirenss that the sirens are on the front of the cop car and etc Link to comment
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