toggleControl ( theplayer, "horn", false )
showPlayerHudComponent ( theplayer, "vehicle_name", false )
setElementData ( wallstick, "purpose", "grapple" )
setVehicleFrozen (wallstick, true)
setElementAlpha(wallstick, 0)
warpPedIntoVehicle ( theplayer, wallstick )
setVehicleEngineState ( wallstick, false )
setPedDoingGangDriveby (theplayer, false )
setPedWeaponSlot ( theplayer, grapplegunslot )
setTimer ( restartgrapple, 500, 1, theplayer)
I don't understand these codes but I saw togglecontrol in line 1. and I wonder what that does. also in line 9. it says weaponslot grapple gun slot. I think it refers to the gun slot of the grapple gun. I tried finding the grapple gun in the list but i cant.
I think it would be crazy to paste all of the codes.
grapplegun = 23 --WHICH GUN WILL BE USED AS A GRAPPLE?
gunrange = 80 --HOW FAR WILL THE GRAPPLE RANGE BE?
I found these in the other lua file. seems important but I don't know what it means they must've hidden the button in a sort of number?
<?xml version="1.0"?>
-type="script" version="5" name="Grapple hook" author="Slothman"/>