Interface administrators, moderator
2,818
edits
No edit summary |
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 [[ | |notes = This is NOT the GTAC [[element.id|element ID]]!<br>The ref ID here is used in GTA natives for [[Client/Natives/III|GTA 3]], [[Client/Natives/VC|Vice City]], and [[Client/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) | ||
}); | }); | ||
}} | }} | ||