Jump to content

Captain Cody

Members
  • Posts

    2,753
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Captain Cody

  1. Captain Cody

    help wanted

    When vehicle is jacked he has 1 minute to call 911, else he cannot. 911a = "" function vehicleExitJack ( thePlayer, seat, jacked ) if jacked then 911a[thePlayer] = true setTimer ( kill911, 60000, 1, thePlayer ) end end function kill911 (player) 911a[player] = false end addEventHandler ( "onVehicleExit", getRootElement(), vehicleExitJack ) Then use if 911a[player] == true then for the 911 command.
  2. That means the element data probably is not there, or non existent. if not (targetPlayer) then outputChatBox("SYNTAX: /" .. commandName .. " [Player Partial Nick / ID] ", thePlayer, 255, 194, 14) else local targetPlayer, targetPlayerName =findPlayerByPartialNick(thePlayer, targetPlayer) if targetPlayer then local logged = getElementData(targetPlayer, "login") if (logged==1) then local wanted = tonumber(getElementData(targetPlayer,"wanted")) or 0 outputChatBox ("player have ae "..wanted..".",thePlayer) end end end end addCommandHandler("getwanted",getwanted) May work.
  3. What is your function called?
  4. I'm not to sure, I'll have to check it out when I get home.
  5. local occupants = getVehicleOccupants(vehicle) amount = 0 for s, o in pairs(occupants) do local amounta = amount amount = amounta + 1 end if (maxPassengers > amount) then
  6. "enter_passenger" will not work with setPedControlState you would just have to warp the ped into vehicle.
  7. local occupants = getVehicleOccupants(vehicle) amount = 0 for s, o in pairs(occupants) do local amounta = amount amount = amounta + 1 end
  8. He wants the object as far as I know, as for that it will indeed need to be modeled in. Use AddVehicleSirens to make the lights and what not actually show.
  9. Try to change the variable names. I've noticed a few times multiple resources conflicting some times with variable names.
  10. Could either mod the vehicle, or mod the police light into an individual object and add it onto the vehicle. I'll do either or if you want.
  11. On stream out check if its a car if so Freeze; On stream in, check if its a car, if so unfreeze, simple as that causes 0 lag. Dear lord. https://wiki.multitheftauto.com/wiki/OnElementStartSync https://wiki.multitheftauto.com/wiki/OnElementStopSync https://wiki.multitheftauto.com/wiki/SetElementFrozen https://wiki.multitheftauto.com/wiki/GetElementType If you need help I'll write you a code later. Laptop doesn't want to work correctly so I can't at the moment.
  12. Freeze them when they stream out, when they stream in unfreeze them.
  13. I mean you could do that OR; you can strike them dead with Godly powers, and lots of explosives. But this works to toggleControl ("fire", false ) toggleControl ( "aim_weapon", false ) toggleControl ("vehicle_fire", false ) toggleControl ("vehicle_secondary_fire", false ) Throw in client side script like so -Client.lua- Then throw an xml file with "Lewis" type="Script" name="Disable fightin' " /> Have a jolly day.
  14. Use a table to define the textures, then define the shader with local and set the local shaders value, then apply it. If that makes sense. textures = {{"texturename","Something.png"},{"texturename2","Something2.png"}} for i,v in pairs (texutres) do local shader = dxCreateShader( "whatever.fx" ) local normal = dxCreateTexture("normal/"..v[2]) dxSetShaderValue(shader,"Tex0",normal) engineApplyShaderToWorldTexture(shader,v[1]) end
  15. I didn't understand a word of what you just said quind. Please state your question a bit more clearly.
  16. Seams my inbox was full, had it set to not allow new messages if so.
  17. https://wiki.multitheftauto.com/wiki/Is ... thinMarker
  18. Not sure if it works, first thing I found really.
  19. Because, not all vehicles have the spoiler location defined.
  20. You may have to make a table that defines the Poor, and Gangster values for each stat.
  21. Poor = -- put highest value for poor here // When it changes from poor to gangster Gangster = -- put highest value for gangster here. // When it changes from gangster to hitman If stat < Poor then level = "poor" elseif stat > poor and stat < Gangster then level = "Gangster" else level = "Hitman" -- Not tested
  22. Use > < and = Check if its below a certain value, above it, in middle etc.
  23. You would need to use attach object with set cords and what not. Here's something I did that demonstrates that exact method. local id = 1 -- Input it here local vehicle = -- Define the vehicle here. local x,y,z = 0,0,0 -- Change to offsets that suits you best local object = createObject ( id , 0, 0,0) attachElements ( object , vehicle, x,y,z ) Xwad addvehicle upgrade wont work in this case.
  24. Gta III is probably in a different format then SA.
×
×
  • Create New...