Search the Community
Showing results for tags 'control'.
-
I made this: -- All other functions and GUI creation. -- [...] -- Created button called "fbumper". local function setFBumper() local theVeh7 = getPedOccupiedVehicle(localPlayer) if theVeh7 then setVehicleComponentVisible(theVeh7, "bump_front_dummy", false) end end addEventHandler("onClientGUIClick", fbumper, setFBumper, false) -- Everything else... It works. Then I wanted to have the button switch between true to false when clicked. Something like: local function setFBumper() local theVeh7 = getPedOccupiedVehicle(localPlayer) if theVeh7 then setVehicleComponentVisible(theVeh7, "bump_front_dummy", false) elseif getVehicleComponentVisible(theVeh7) == "false" then setVehicleComponentVisible(theVeh7, "bump_front_dummy", true) end end addEventHandler("onClientGUIClick", fbumper, setFBumper, false) guiSetVisible (vehmod, false) It doesn't work correctly. It sets it invisible, but it doesn't return the state to visible. I also thought about using the setVehicleComponentVisible (not setVehicleComponentVisible) to make it a little bit more compact. I'm using a setEngineState script to help myself, but I don't know how to use it with these arguments. DB 3 throws nothing. What am I doing wrong?
-
سكربت التحكم بالشخصيات بواسطة هذا السكربت تقدر تتحكم بجميع الشخصيات في داخل اللعبة من خلال تفعيلهم او تعطيلهم بعض الصور: فنكشنات الأكسبورت: رابط التحميل: هنا ملاحظات: تقدر تضيف السيريالات الي يقدرون يفتحون اللوحة من الأعدادات وتقدر تضيف الكوماندات الي من خلالها تقدر تفتح اللوحة من الأعدادات ايضا وإذا تبي تعدل شي مثل الكتابة الي في اللوحات او احداثيات اللوحات والكلام الي يطلع في الشات كله في Settings_C اذا تبي السكربت يكون عربي عدل على Settings_C وخله كذا:
-
I want to drive cars from the server, mean cars are moving without non-player control.. Is it possible? I mean cars are spawned and drive automatically from the server.. Thanks
-
Hi. I'm trying to do script while which block control HORN from other keys than ( H // CAPSLOCK) Code server: function klakson (source) if (isKeyBound (source,"capslock")) or (isKeyBound (source,"h")) then setControlState (source, "horn", true ) outputChatBox ("on",getRootElement(),255,0,0,true) -- only information else toggleControl ( "horn", false ) outputChatBox (source,"off",getRootElement(),255,0,0,true) -- only information end end addEventHandler ("onClientResourceStart",getRootElement(),klakson) Any ideas? ;/