element.ref: Difference between revisions

16 bytes removed ,  Sunday at 00:37
no edit summary
(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
 
(One intermediate revision by the same user not shown)
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/GTA3|GTA 3]], [[Resources/Natives/GTAVC|Vice City]], and [[Resources/Natives/GTASA|San Andreas]]
|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)  
});
});
}}
}}
2,818

edits