Jump to content

IIYAMA

Moderators
  • Posts

    6,063
  • Joined

  • Last visited

  • Days Won

    209

Everything posted by IIYAMA

  1. Function works: /srun getVehicleNameFromModel(470) Command results: Patriot [string] I recommend in case of wrong model: return {getVehicleNameFromModel(model) or "", 1}
  2. FROM VERSION 1.3.1 r5212 ONWARDS bool setCameraTarget ( float targetX, float targetY, float targetZ ) Required Arguments targetX, targetY, targetZ: The target position that you want the local camera to look at. But it won't be the crosshair, it will be the middle of the screen. You should calculate that...
  3. Getting isn't the problem, setting is it.
  4. This is serverside, not clientside. So: exports.notifications:showBox(hitElement,"info","ZonaProtegida") As you can see in the script:(serverside) function showBox(player, value, str) if isElement(player) then triggerClientEvent(player, "CreateBox", getRootElement(), value, str) end end
  5. There are no functions that make this possible yet very easily. The functions that are there do not work for the localPlayer, but only for remote players(other players except your self) and peds.
  6. Line 22 and 43: if (isVehicleBlown( veh ) == false) then To: if veh and (isVehicleBlown( veh ) == false) then
  7. It is a text quote, so yes of course without those " ".
  8. Well your problem is that a player isn't always in a vehicle. Which means you are trying to get the position from a vehicle which doesn't exist. so before you get it's position do "if vehicle then".
  9. Because the projectile is gone after it exploded, doesn't that make sense? Keep an eye on this event: https://wiki.multitheftauto.com/wiki/OnClientExplosion Also use local's for god sake.
  10. You see the animation but you don't see the projectile. https://wiki.multitheftauto.com/wiki/CreateProjectile Try something like this or included the ped position. createProjectile (ped,18)
  11. Peds can't create (synced) projectiles.
  12. Your weakness is that you are sending your code to your clients. If you script most of your code serverside, nobody can touch your code.
  13. I think your problem was the setElementHealth to 0, most of the time the problem. If that doesn't work setPedAnimation also to false/'empty'.
  14. Answer for question 2. This bug is created by: setElementHealth to 0 setElementFrozen to true setElementCollisionsEnabled to false animation to forced without interruption -- and maybe more. Make sure the player is not frozen and collision is enabled, animation is stopped. Never set player health to zero, always use the killPed(serverside) function. I hope it helps you to solve this problem in the code.
  15. @Max+ Servers are most of the time fine, clients are not. @John Smith Try this ugly, disgusting and laggy resource: https://community.multitheftauto.com/in ... ls&id=1600 and it may go a bit faster. I don't recommend it, but it is the only resource next to my syncro which does have faster headshots.
  16. Makes you swim slower depending on the server fps. Fps limit supported: 30 t/m 60 There is maybe still a tiny difference in the speed, but it is better then nothing. This resource has been created to make everybody swim at the same speed. It is a kind of gta bug fix. Download here I don't care if you like it or not, just sharing... Related to this bug: https://bugs.multitheftauto.com/view.php?id=6125
  17. Other resource are using it too so it matters for them. (admin, editor, mapmanager etc.)
  18. AFAIK "misc" = remaining So if you don't think it fits in "gamemode", "script", "map" then you can consider to put it in misc.
  19. IIYAMA

    turf color

    Nothing is saved at index 6? (export function > script a both) and I don't see anything that is storing anything at groupTable.(export function) So it is for me an puzzle which can't be solved because of a leak of information. Please post the required information and not more then that.
  20. Debug your code if you want to know why it isn't working. /debugscript 3 function posicao(button,pressOrRelease) outputDebugString("key pressed Button: " .. tostring(button) .. ", State: " .. tostring(pressOrRelease)) if button == "F11" and pressOrRelease then local myPlayer = getLocalPlayer () local myBlip = createBlipAttachedTo ( myPlayer, 2 ) end end addEventHandler("onClientKey", root, posicao)
  21. You forgot to call the getLocalPlayer function >>> () local myplayer = getLocalPlayer local myplayer = getLocalPlayer()
  22. onClientKey Doesn't take extra arguments. function posicao(button,pressOrRelease) if button == "f11" and pressOrRelease then end end addEventHandler("onClientKey", root, posicao)
  23. IIYAMA

    Save vehicle

    or he can use table. Read wiki please,
  24. IIYAMA

    onPlayerFinish

    This function don't work Fine if you take a no for correct answers, then figure it out by yourself.
  25. IIYAMA

    onPlayerFinish

    Try: local timeHasPast = export.race:getTimePassed()
×
×
  • Create New...