NeverUnbeatable

Members
  • Content count

    53
  • Joined

  • Last visited

Community Reputation

8 Neutral

1 Follower

About NeverUnbeatable

  • Rank
    Snitch

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. NeverUnbeatable

    Sensitive dxCreateShader (peds)

    Is render target destroyed every time onClientMarkerHit event is triggered? Did you test it with new markers?
  2. NeverUnbeatable

    Apply shader to only one rear light

    It won't look as cool as this decision.
  3. NeverUnbeatable

    help please.. - setVehicleComponentPosition- move spoiler...

    The onClientRender event and some basic math are decision if you want to make movements smoother
  4. NeverUnbeatable

    i need help with this script

    Seems like those scripts are leaked.
  5. NeverUnbeatable

    car wheel rotation question

    You could get vehicle's rotation with getElementRotation function and set wheels' rotation with setVehicleComponentRotation for each frame in onClientRender event so wheels will stay straight relative to your vehicle.
  6. NeverUnbeatable

    teaDecode help

    Which error? Also make sure you can't encode the file while the resource is running.
  7. NeverUnbeatable

    I need support in scripting for teams

    Could you tell what's the error?
  8. NeverUnbeatable

    set skin

    Probably this is what you wanna do: local validSkins = {29, 30, 100, 101, 102, 104, 106, 107, 108, 109, 110, 114, 115, 116, 118, 144, 165, 173, 174, 175, 280, 283, 285, 286, 287, 294} function spawnOnJoin() local rndSkin = validSkins[math.random(0,#validSkins)] -- get random valid skin from the table spawnPlayer(source, 0,0, 5, 0, rndSkin) -- spawn a player when he joins the server fadeCamera(source, true) setCameraTarget(source, source) end end addEventHandler("onPlayerJoin", root, spawnOnJoin)
  9. NeverUnbeatable

    function

    onVehicleExplode is a serverside event though. Use onClientVehicleExplode instead.
  10. NeverUnbeatable

    function

    Function attached to event onVehicleExplode has no parameters. And source is an element that the event is originated from and it's predefined. I suppose it's just a fragment of full code. I can't see veh4 table and Bfim4 element declarations. Moreover, using outputChatBox for source element in this case doesn't make sense because source is actually a vehicle. Try this code and reply if it's working. function blowveh4 () --if (veh4[source]) and isElement(veh4[source]) then destroyElement (source) setElementVisibleTo ( Bfim4, source, false ) outputChatBox("#ff0000Mission failled, your vehicle blow", root ,0,0,0,true) --else --end end addEventHandler ( "onVehicleExplode", getRootElement(), blowveh4 )
  11. NeverUnbeatable

    Remove /me command - Its resource name?

    Any serverside .lua script. Learn how to script and ask only if you have question related to scripting problem.
  12. NeverUnbeatable

    Remove /me command - Its resource name?

    You have to disable the default /me command and write new one. Try this code: addEventHandler("onPlayerChat", root, function(message, type) if type == 1 then -- if action message cancelEvent() -- prevent from sending it into chatbox local actionMessage = string.gsub(getPlayerName(source), "#%x%x%x%x%x%x", "").." "..message outputChatBox(actionMessage, root, 255, 255, 255, false) end end
  13. NeverUnbeatable

    Problem in code

    Clientside events hideinventory and showinventory are missed. I don't see them in your code.
  14. NeverUnbeatable

    MTA PROBLEM -Expected string at argument 1, got nil

    I don't see a line with error.
  15. NeverUnbeatable

    Chat Write

    You will need event onPlayerChat and the following functions: getPlayerAccount() isGuestAccount() getAccountName() aclGetGroup() isObjectInACLGroup() getPlayerTeam() getTeamName() outputChatBox() cancelEvent() Take attempts to make this script yourself and ask for help here, if needed.