Guest Posted January 3, 2021 Share Posted January 3, 2021 (edited) Hello, my problem is that I am not able to spawn vehicles in UG: MP, here is a piece of code, I hope you can help me. Thank you. INCLUDES: #include <a_samp> #include <YSI\y_ini> #include <streamer> #include <sscanf2> #include <izcmd> #include <djson> #include <foreach> #include <selec2> #include <mSelection> #include <yom_buttons> #include <mapeos> #include <JunkBuster> #include <a_vehicles> #include <ugmp> #include <ugmp_vehicles> #include <ugmp_models> PLUGINS: -sscanf -ugmp -streamer CMD:crearauto(playerid, params[]) { new modelid, color1, color2; if (sscanf(params, "ddd", modelid, color1, color2)) return _Mensaje(playerid, 3, "0", "/crearauto [modelid] [color 1] [color 2]"); new Float: X, Float: Y, Float: Z, Float: Angle; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, Angle); CreateVehicle(modelid, X, Y, Z, Angle, color1, color2, 0 ,0); return 1; } Edited January 3, 2021 by Mathese Add plugins Link to comment https://gtaforums.com/topic/966999-scripting-how-to-put-vehicles-in-ugmp/ Share on other sites More sharing options...
DoomReaper Posted February 1, 2021 Share Posted February 1, 2021 Hello, I'd recommend asking in our official Discord in #ugmp-server-development where bunch of other server developers will help you. Link to comment https://gtaforums.com/topic/966999-scripting-how-to-put-vehicles-in-ugmp/?do=findComment&comment=1071468597 Share on other sites More sharing options...
Recommended Posts