element.ref: Difference between revisions

Jump to navigation Jump to search
9 bytes removed ,  Sunday at 00:37
no edit summary
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 [[Resources/Natives/III|GTA 3]], [[Resources/Natives/VC|Vice City]], and [[Resources/Natives/SA|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

Navigation menu