Jump to content

roddydennvor

Members
  • Posts

    132
  • Joined

  • Last visited

Everything posted by roddydennvor

  1. hmm , you can create script when player enter vehicle , check vehicle id and make text like that , but you must disable original text
  2. 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 ?
  3. hmm not work : if exports.global:hasItem(theVehicle, 10) then setVehicleHandling(theVehicle, "maxVelocity", 300.0) setVehicleHandling(theVehicle, "engineAcceleration", 90.0 ) end
  4. so i just use like this ... ??? if (itemID == 10) then setVehicleHandling(v, "maxVelocity", 300.0) end
  5. 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 ..
  6. Solved , just copy this Script to item system , thanks
  7. roddydennvor

    HELP !!

    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 )
  8. can i change "export" to "getPedWeapon for this case ?
  9. 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
  10. Gampang lah ,,, Mau dibantu ? suruh aja si Ezza chat ke Gw ,,, Arthur alvaro ,,, owner Crusher gaming roleplay :v :v
  11. 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
  12. 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)
  13. Okay thank you very much for this information
  14. Hmm, how to use setElementModel ??? Like this... ? setElementModel ( theSkin, 301) or setElementModel ( source, 301 )
  15. Solved, Using SetPedSkin function :) Thanks
  16. 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 :)
  17. Yeah !! This is great idea,,, so when people get injured then this script work :D
  18. Hmm , i mean when the player exit game then all interior owned by the player is locked ... Can someone help me... ?
  19. 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
  20. Hii there , how to add water into some interior ? i want to make custom interior ( swimming pool ) Thx
  21. 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 )
  22. 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 )
×
×
  • Create New...