roddydennvor
Members-
Posts
132 -
Joined
-
Last visited
Everything posted by roddydennvor
-
hmm , you can create script when player enter vehicle , check vehicle id and make text like that , but you must disable original text
-
Can someone tell me how to replacing driving sound , i mean i want to change infernus sound from original to my custom sound of ferrari sound mod , How to do ?
-
vehicles data
-
hmm not work : if exports.global:hasItem(theVehicle, 10) then setVehicleHandling(theVehicle, "maxVelocity", 300.0) setVehicleHandling(theVehicle, "engineAcceleration", 90.0 ) end
-
so i just use like this ... ??? if (itemID == 10) then setVehicleHandling(v, "maxVelocity", 300.0) end
-
Hii there , how to use setmodelhandling with item system ? So when i have item id 10 in my vehicle , then my vehicle velocity +30 from normal velocity and my vehicle brake ABS turn to True ..
-
Solved , just copy this Script to item system , thanks
-
How to change this Script... I want this script set to addeventhandler , not addcommandhandler And how to edit this script so when i use item id 90 then this script will be work ... ?? local cases = {} for i,v in ipairs(getElementsByType("player"))do setElementData(v, "ffhelmet", 0) end addCommandHandler("ffhelmet", function(player) if(getResourceState(getResourceFromName("bone_attach")) == "running")then if(getElementType(player) == "player")then if(getElementData(player, "helmet") ~= 1)then setElementData(player, "helmet", 1) case = createObject(2054,0,0,0) exports.bone_attach:attachElementToBone(case,player,1,0,0.04,0.06,0,0,180) cases[player] = case elseif(getElementData(player, "helmet") == 1)then setElementData(player, "helmet", 0) exports.bone_attach:detachElementFromBone(cases[player]) destroyElement(cases[player]) end end else outputChatBox("ERROR #1", player, 255, 50, 0) end end )
-
can i change "export" to "getPedWeapon for this case ?
-
MTA itu itungan waktunya pakai Milisecond , 1 menit = 60000 milisecond ,, jadi kalau itu settingan 10 menit , 10x60000 = 600000 , cari aja itu angka , terus diubah deh
-
Gampang lah ,,, Mau dibantu ? suruh aja si Ezza chat ke Gw ,,, Arthur alvaro ,,, owner Crusher gaming roleplay :v :v
-
no no , i want to upgrade this script , so if i have item id 49 i can repair vehicles. i just try to add this : if not(exports.global:hasItem(thePlayer, 49)) then outputChatBox("You need a fishing rod to fish.", thePlayer, 255, 0, 0) ......... But nothing happend
-
hii there , i want to make this script work if the player have item id 49 , but how ... ? Here is the script function serviceVehicle(veh) if (veh) then local mechcost = 100000 if (getElementData(source,"faction")==16) then mechcost = mechcost / btrdiscountratio end if not exports.global:takeMoney(source, mechcost) then outputChatBox("Kamu tidak dapat membayar service ini.", source, 255, 0, 0) else local health = getElementHealth(veh) if (health <= 850) then health = health + 150 else health = 1000 end fixVehicle(veh) setElementHealth(veh, health) if not getElementData(veh, "Impounded") or getElementData(veh, "Impounded") == 0 then exports['anticheat-system']:changeProtectedElementDataEx(veh, "enginebroke", 0, false) if armoredCars[ getElementModel( veh ) ] then setVehicleDamageProof(veh, true) else setVehicleDamageProof(veh, false) end end exports.global:sendLocalMeAction(source, "memperbaiki kendaraan.") exports.logs:dbLog(source, 31, { veh }, "REPAIR QUICK-SERVICE") end else outputChatBox("Kamu harus berada di dalam kendaraan yang akan di perbaiki.", source, 255, 0, 0) end end addEvent("serviceVehicle", true) addEventHandler("serviceVehicle", getRootElement(), serviceVehicle)
-
Okay thank you very much for this information
-
Hmm, how to use setElementModel ??? Like this... ? setElementModel ( theSkin, 301) or setElementModel ( source, 301 )
-
Solved, Using SetPedSkin function :) Thanks
-
Hii there , So i just want to set player skin when the player use an item... For example.. If the player use item id 40 then , the skin change to skin id 191 Thank you , Your help will be appreciate :)
-
Yeah !! This is great idea,,, so when people get injured then this script work :D
-
Hmm , i mean when the player exit game then all interior owned by the player is locked ... Can someone help me... ?
-
Hii there , i have some interior system , well .. I just want to make some features .... So when the player is offline then the interior is automaticly lock ... But how ? Please help me... Thx before... Your help will be appreciate
-
Hii there , how to add water into some interior ? i want to make custom interior ( swimming pool ) Thx
-
So i must to edit this script like this ...??? function updateTime() local offset = 3600 * 9 local realtime = getRealTime() hour = realtime.hour - offset if hour >= 24 then hour = hour - 24 elseif hour < 0 then hour = hour + 24 end minute = realtime.minute setTime(hour, minute) nextupdate = (60-realtime.second) * 1000 setMinuteDuration( nextupdate ) setTimer( setMinuteDuration, nextupdate + 5, 1, 60000 ) end addEventHandler("onResourceStart", getResourceRootElement(), updateTime ) -- update the time every 30 minutes (correction) setTimer( updateTime, 1800000, 0 )
-
hii there , i am from indonesian , but this time is US Time maybe ,,, how to set the time same as my country time ? For example ,, this script show time : 18:00 ,,, but in my country the time is 09:00 ,, how to set US time - 12 hours , so 18:00 - 12 hours = 09:00 Here is the script function updateTime() local offset = tonumber(get("offset")) or 0 local realtime = getRealTime() hour = realtime.hour + offset if hour >= 24 then hour = hour - 24 elseif hour < 0 then hour = hour + 24 end minute = realtime.minute setTime(hour, minute) nextupdate = (60-realtime.second) * 1000 setMinuteDuration( nextupdate ) setTimer( setMinuteDuration, nextupdate + 5, 1, 60000 ) end addEventHandler("onResourceStart", getResourceRootElement(), updateTime ) -- update the time every 30 minutes (correction) setTimer( updateTime, 1800000, 0 )
-
Can someone help me ??