Interface administrators, moderator
2,818
edits
(Created page with "{{ScriptItem |endpoint = client |type = property |class = Element |name = ref |returnTypes = int |readonly = true |usage = gets the internal GTA reference ID of the element |returnInfo = the internal GTA reference ID of the element |notes = This is NOT the GTAC element ID!<br>The ref ID here is used in GTA natives for GTA 3, Vice City, and San Andreas |exampleJSCS = addComma...") |
No edit summary |
||
| Line 8: | Line 8: | ||
|usage = gets the internal GTA reference ID of the element | |usage = gets the internal GTA reference ID of the element | ||
|returnInfo = the internal GTA reference ID of the element | |returnInfo = the internal GTA reference ID of the element | ||
|notes = This is NOT the GTAC [[element.id|element ID]]!<br>The ref ID here is used in GTA natives for [[Resources/Natives/ | |notes = This is NOT the GTAC [[element.id|element ID]]!<br>The ref ID here is used in GTA natives for [[Resources/Natives/III|GTA 3]], [[Resources/Natives/VC|Vice City]], and [[Resources/Natives/SA|San Andreas]] | ||
|exampleJSCS = addCommandHandler("taxilight", (command, params) => { | |exampleJSCS = addCommandHandler("taxilight", (command, params) => { | ||
natives.SET_TAXI_LIGHT(localPlayer.vehicle.ref, 1) | natives.SET_TAXI_LIGHT(localPlayer.vehicle.ref, 1) | ||
}); | }); | ||
}} | }} | ||