setRopeDuration
Shared
Sets a rope's total lifetime in milliseconds.
Syntax
bool setRopeDuration(rope theRope, int duration)Arguments
theRoperopeManaged rope element.
durationintLifetime in milliseconds. 0 means the rope does not expire on its own.
Returns
true when applied; false for an invalid rope or value.
Ownership and lifecycle
A rope belongs to the resource that created it. GTA has eight native rope slots, so Neon leases them to the logical ropes that need one; a rope without a lease still exists but is not natively simulated at that moment. Every native type except swat requires a valid physical holder.
Where this comes from
SOURCECLuaRopeDefs.cppServer/mods/deathmatch/logic/luadefs/CLuaRopeDefs.cpp INTRODUCED / EXTENDED32d6ac731Read the commit and why the change was made TEST RESOURCE rope-test test-resources/rope-test
RELATED NEON APIS
Read the system guide →