Smileey Posted June 5, 2019 Posted June 5, 2019 with Clientside Javascript example: let Ped = mp.peds.new(mp.game.joaat('a_m_y_bevhills_01'), new mp.Vector3( -1153.755, -718.8862, 20.97753), 127.3255, (streamPed) => { // Ped Streamed streamPed.setAlpha(0); }, 0); Change the Vector3 with yours coordination and then the rotation sory for my bad english 1
kirichely Posted April 2, 2020 Posted April 2, 2020 why such a mistake? Error: TypeError: Cannot read property 'new' of undefined
xspectorx Posted April 26, 2020 Posted April 26, 2020 17 часов назад, Runway37 сказал: https://wiki.rage.mp/index.php?title=Peds::new thx. but example not working for me. "objectSpawn" loaded Error: TypeError: Cannot read property 'new' of undefined at Object.<anonymous> (E:\games\ragemp\server-files\packages\objectSpawn\objectSpwanEvents.js:49:19) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:20:18) at Object.<anonymous> (E:\games\ragemp\server-files\packages\objectSpawn\index.js:2:1) at Module._compile (internal/modules/cjs/loader.js:689:30) "simple" loaded "suicide" loaded "syncedVehicle" loaded "vehiclesSpawn" loaded [P] Plugin bridge.dll loaded! can u help pls?
xspectorx Posted April 26, 2020 Posted April 26, 2020 ok i think i solve the problem. this code on client-side: let ped = mp.peds.new( mp.game.joaat('MP_F_Freemode_01'), new mp.Vector3(-408, 6034, 31.3378), 270.0, mp.players.local.dimension ); its work. how i sync with other players this? next step i think i need use this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now