Jump to content

x [ تعديل ] x كلك سيارة


Recommended Posts

السلام عليكم

دلوقتي الكود ده لما اضغط علي الاعب يفتح الوحة

عاوز ازود عليه لما اضغط علي العربية

تتفتح الوحة

ويجبلي اخر واحد كان يسوقها

function elementClicked(_,_,plr,veh) 
local mhaster12 = getPlayerName (source)  
local gfg = getVehicleController ( source ) 
local mnm = getPlayerName (gfg) 
if getElementType (source) == "player" or getElementType (source) == "vehicle" then 
triggerClientEvent(plr,"openGui",plr) 
triggerClientEvent(plr,"openGui123",plr,mhaster12) 
removeElementData (plr,"bugfix") 
removeEventHandler ("onElementClicked",plr,elementClicked) 
end 
end 
  
addEvent("check2",true) 
addEventHandler("check2",root, 
function() 
local acc = getPlayerAccount(source) 
if isObjectInACLGroup("user."..getAccountName(acc),aclGetGroup("Police")) then 
addEventHandler("onElementClicked",source,elementClicked) 
setElementData (source,"bugfix",true) 
  
else 
outputChatBox("You are not police or admin",source,255,255,255) 
end 
end 
  
) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...