View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000217 | Client/Game | Grand Theft Auto: Vice City | public | 2020-10-17 06:57 | 2020-10-24 23:56 |
Reporter | yallinthehall | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | x64 | OS | Windows | OS Version | 10 |
Product Version | 1.1.52 | ||||
Summary | 0000217: Client side JS doesn't recognize "spawnPlayer" | ||||
Description | The exact code I am using is: I have tested the spawn parameters on the server side and it works well. The event also isn't the issue. The error from the client side console is: ReferenceError: spawnPlayer is not defined ... which I know to mean it can't access the function. I feel that I'm missing something really simple here. Is there another object that I need to call that function from? I already tried gta.spawnPlayer (the Wiki shows sone functions and objects needing a "gta." prefix and not others). Any help is appreciated! | ||||
Steps To Reproduce | addEventHandler("onPedWasted", (event,ped) => { // Client side | ||||
Tags | Scripting | ||||
Game | |||||
|
spawnPlayer in clientside exists only while you're disconnected |
|
As lucy explained, spawnPlayer in clientside exists only while you're disconnected. It's not meant to be used in multiplayer since the server handles all player spawning, and the wiki will be updated to mention that. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-10-17 06:57 | yallinthehall | New Issue | |
2020-10-17 06:57 | yallinthehall | Tag Attached: Scripting | |
2020-10-17 15:14 | Lucy | Note Added: 0000093 | |
2020-10-24 23:56 | Vortrex | Status | new => closed |
2020-10-24 23:56 | Vortrex | Resolution | open => no change required |
2020-10-24 23:56 | Vortrex | Note Added: 0000098 |