ege Posted March 21, 2021 Share Posted March 21, 2021 how to generate a vehicle with plotting only by a group Link to comment
Mr3b Posted March 22, 2021 Share Posted March 22, 2021 Do you mean a dedicated group that can ride or build a car? Link to comment
ege Posted March 22, 2021 Author Share Posted March 22, 2021 10 hours ago, Major . Mr3b said: Do you mean a dedicated group that can ride or build a car? Yes Link to comment
Mr3b Posted March 22, 2021 Share Posted March 22, 2021 This for build car --Server Side function checkAccess(thePlayer) if isPlayerInACL(thePlayer, "") then local veh = createVehicle(vehid, x, y, z, 0, 0, rotz) if (veh) then outputChatBox("Done") end else outputChatBox("Access Denied!") end end addCommandHandler("createveh", checkAccess And This for Enter car --Server Side vehs = { [598]=true, [596]=true, [597]=true, [599]=true } function enterVehicle ( theVehicle, seat, jacked ) --when a player enters a vehicle if ( vehs[getElementModel ( theVehicle )] ) and ( not isPlayerInACL(source, "") ) then -- if the vehicle is one of 4 police cars, and the skin is not a police skin removePedFromVehicle ( source ) -- force the player out of the vehicle end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle ) Source : https://wiki.multitheftauto.com/wiki/OnPlayerVehicleEnter https://wiki.multitheftauto.com/wiki/IsPlayerInACL Link to comment
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