-
Posts
404 -
Joined
-
Last visited
Everything posted by AE.
-
addEventHandler("onPlayerLogin", root, function(_, account) if not getAccountData(account, "FirstTime") then outputChatBox("You're playing for the first time!", source, 0, 255, 0) startResource ( skinnew ) setElementPosition ( source, 1254.50049, -790.40015, 92.03018 ) setAccountData(account, "FirstTime", true) else outputChatBox("This is not the first time for you!", source, 255, 0, 0) end end) it do every thing right and working but the resource won't start and i added the script on admin group in the acl .. still don't work
-
wow it works thx really ..
-
it works but still don't fly ...
-
i will just make a client with the same codes but without a function
-
yes i missed this i want the ped do steer_back when a player enter as a passenger ... then wtf should i do? how do i trigger without a function?
-
function cv() local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) setTimer ( warpPedIntoVehicle, 200, 1, Ped, Vehicle ) end addEventHandler ("onResourceStart", resourceRoot, cv ) function fly() local pp = getLocalPlayer () if isPedInVehicle ( pp ) then setPedControlState(Ped,"steer_back", true) end end
-
i created a function to make a ped fly with a heli it did not work function fly() local pp = getLocalPlayer () if isPedInVehicle ( pp ) then setPedControlState(Ped,"steer_back", true) end end
-
oh can i have it .. ?
-
hey do you have skype ?
-
thxxxx it works
-
hey guys can you tell me why the vehicle is not showing ?? function ( ) local Ped = createPed ( 287, 0, 0, 3 ) local Vehicle = createVehicle ( 487, 1290.68958, -785.93646, 96.55399 ) setVehicleColor( Vehicle, 0, 0, 0, 0, 250, 250 ) warpPedIntoVehicle ( Ped, Vehicle ) end
-
بسم الله الرحمن الرحيم شباب انا بدي كود زر يكون enable كل فترة مو فترة محددة لا كل فترة يعني كل ساعة كل ساعتين كدة ------------ واذا الاعب ماضغطه بعد ماصار enable يضل enable لين مايضغط عليها وبعدين يصير disable انا عارف انو طالب كتير بس مو ضروري اللي فوق اهم شئ اللي تحت وشكرآ
-
شباب مشكورين خلاص انا حليت المشكلة
-
حبي انا هون بدي اسوي ايفنت لسيرفر وهو ذا addEventHandler("onPlayerLogin", root, function() triggerClientEvent ( "open" ) end ) فهمتني؟
-
حبيبي انا سويت ايفنت؟ مفهوم هيك يعني event عادي في الكلينت وسويتله تريقر في ملف السيرفر بس فنكشن حق التريقر فاضي ومثلا شوف الويكي دا كود function greetingCommand ( playerSource, commandName ) triggerClientEvent ( playerSource, "onGreeting", playerSource, "Hello World!" ) -- لاحظ؟ الفنكشن فيه موارد end addCommandHandler ( "greet", greetingCommand ) لاكن مثلا شوف الكود حقي كدا function open ( ) triggerClientEvent ( ) --فهون وش احط بالتريقر؟ end
-
السلام عليكم ورحمة الله وبركاته شباب انا سويت ايفنت في الكلينت function open() guiSetVisible(team, true) showCursor(true) end addEvent("open", true) addEventHandler("open",getRootElement(),open) تمام وبدي اسويله تريقر في السيرفر بس المشكلة الفنكشن حق السيرفر فاضي يعني اخلي التريقر مافيه غير اسم الايفنت ولا وش احط؟
-
ماشتغل الكود addEventHandler("onRender", getRootElement(), function() local x, y, z = getElementPosition(MxXx1) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+1.3) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 30) then dxDrawText("markerr", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") dxDrawText("marker", sx, sy, sx, sy, tocolor(255,255,0), 2-(distance/20), "arial", "center", "center") end end end end) ..