Well, it doesnt do anything at all
I tried this too, nothing happens when i enter the vehicle
function ococo()
local theVehicle = getPedOccupiedVehicle (localPlayer) -- not needed, when you already have a vehicle
if theVehicle then
local theVehicle = getPedOccupiedVehicle ( localPlayer )
local getComponent = getVehicleComponents(theVehicle)["chassis_dummy"] -- get a table with all the components of the vehicle
for compenent in pairs (getComponent) do
setVehicleComponentVisible(theVehicle, compenent, false) -- hides the component
end
end
end
addEventHandler ( "onClientVehicleEnter", root, ococo )