26 lines
		
	
	
	
		
			933 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			933 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
| --[[ state ]]
 | |
| 
 | |
| Rope = {}
 | |
| 
 | |
| --[[ events ]]
 | |
| 
 | |
| RegisterNetEvent(_e('server:rope:AttachAtmRopeToPed'), function(netPedId, netFakeAtmEntity)
 | |
|     local owner = source
 | |
|     TriggerClientEvent(_e('client:rope:AttachAtmRopeToPed'), -1, netPedId, netFakeAtmEntity, owner)
 | |
| end)
 | |
| 
 | |
| RegisterNetEvent(_e('server:rope:attachRopeWithVehicle'), function(netFakeAtmEntity, netAttachedVehicle)
 | |
|     local owner = source
 | |
|     TriggerClientEvent(_e('client:rope:attachRopeWithVehicle'), -1, netFakeAtmEntity, netAttachedVehicle, owner)
 | |
| end)
 | |
| 
 | |
| RegisterNetEvent(_e('server:rope:onAtmRipped'), function(coords, model)
 | |
|     local owner = source
 | |
|     server.SetAtmHacked(model, coords, owner)
 | |
|     TriggerClientEvent(_e('client:rope:onAtmRipped'), -1, coords, model, owner)
 | |
| end)
 | |
| 
 | |
| RegisterNetEvent(_e('server:rope:DeletePlayerRope'), function()
 | |
|     local owner = source
 | |
|     TriggerClientEvent(_e('client:rope:DeletePlayerRope'), -1, owner)
 | |
| end)
 | 
