Jump to content

[HELP] Dealer-Ship


xXGhostXx

Recommended Posts

3 minutes ago, Knuck said:

xd wot explain it

How to fix vehicle damage proof ?

local vehicles = getElementsByType("vehicle") 
for _,vehicle in pairs(vehicles) do 
setVehicleDamageProof(vehicle,true) 
end 
  
function onDamageProof(vehicle,seat,jacked) 
setVehicleDamageProof(vehicle,false) 
end 
addEventHandler("onPlayerVehicleEnter",root,onDamageProof) 

Player when not inside the car vehicle not damage

Player enter vehicle Damage on

Link to comment
15 minutes ago, xXGhostXx said:

How to fix vehicle damage proof ?


local vehicles = getElementsByType("vehicle") 
for _,vehicle in pairs(vehicles) do 
setVehicleDamageProof(vehicle,true) 
end 
  
function onDamageProof(vehicle,seat,jacked) 
setVehicleDamageProof(vehicle,false) 
end 
addEventHandler("onPlayerVehicleEnter",root,onDamageProof) 

Player when not inside the car vehicle not damage

Player enter vehicle Damage on

Code broken 100% put vehicles not vehicle

Link to comment
Just now, Knuck said:

local vehicles = createVehicle(ID,x,y,z,rot)

  
function onDamageProof(vehicle,seat,jacked) 
setVehicleDamageProof(vehicles,false) 
end 
addEventHandler("onPlayerVehicleEnter",root,onDamageProof) 

 

Server side ?

2 minutes ago, Knuck said:

local vehicles = createVehicle(ID,x,y,z,rot)

  
function onDamageProof(vehicle,seat,jacked) 
setVehicleDamageProof(vehicles,false) 
end 
addEventHandler("onPlayerVehicleEnter",root,onDamageProof) 

 

Not Work

Link to comment
1 minute ago, xXGhostXx said:

Server side ?

use this ----

local vehicles = createVehicle(ID,x,y,z,rot)

  
function onDamageProof(seat,jacked) 
setVehicleDamageProof(vehicles,false) 
end 
addEventHandler("onPlayerVehicleEnter",vehicles,onDamageProof) 

 

serverside

 

Link to comment
1 minute ago, N3xT said:

addEventHandler ( "onPlayerVehicleEnter", root,
	function ( vehicle )
		setVehicleDamageProof ( vehicle, true )
	end
)

 

Not work !

I want on player vehicle enter damage proof active

Seat and player not inside car vehicle damage proof off

Link to comment
addEventHandler ( "onPlayerVehicleEnter", root,
	function ( vehicle )
		setVehicleDamageProof ( vehicle, false )
	end
)

addEventHandler ( "onPlayerVehicleExit", root,
	function ( vehicle )
		setVehicleDamageProof ( vehicle, true )
	end
)

 

Link to comment
1 minute ago, N3xT said:

addEventHandler ( "onPlayerVehicleEnter", root,
	function ( vehicle )
		setVehicleDamageProof ( vehicle, false )
	end
)

addEventHandler ( "onPlayerVehicleExit", root,
	function ( vehicle )
		setVehicleDamageProof ( vehicle, true )
	end
)

 

Not work :(

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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