• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] [HELP] Securicar Interior
#4
(2021-01-06, 11:28 PM)Necmi07 Wrote: I couldn?t do it but thank you so much :)



What is the issue, more precisely? Perhaps we can help you out.



First and foremost, you will need to find a map that you wish to use as a vehicle interior or create your own map, then make sure that it's implemented in your gamemode.



Afterwards, xbruno1000x's code is pretty straightforward. You only need to add some data to his code referring to entering the interior:



Code:
GetVehicleModel(vehicleid) == SECURICAR ID

//in your case, it should be the following for both Securicar and Enforcer:

GetVehicleModel(vehicleid) == 426 || GetVehicleModel(vehicleid) == 427



//while immediately after the accolade you should have:

SetPlayerPos(playerid, 1, 2, 3); //replace 1 with your X coordinate, 2 with your Y coordinate, and 3 with your Z coordinate of the map

SetPlayerFacingAngle(playerid, 0); //replace 0 with your ideal facing angle when spawning inside the interior, so that you will be facing the right way

SetCameraBehindPlayer(playerid);

SetPlayerInterior(playerid, 0); //change it to your map's interior ID, if need be
  Reply


Messages In This Thread
[HELP] Securicar Interior - by Necmi07 - 2020-12-30, 10:44 PM
RE: [HELP] Securicar Interior - by xbruno1000x - 2020-12-31, 04:46 PM
RE: [HELP] Securicar Interior - by Necmi07 - 2021-01-06, 11:28 PM
RE: [HELP] Securicar Interior - by M.D. - 2021-01-12, 08:38 PM

Forum Jump: