Jump to content

Major . Mr3b

Members
  • Posts

    9
  • Joined

  • Last visited

About Major . Mr3b

  • Birthday 01/01/1996

Details

  • Gang
    Desert
  • Occupation
    Leader
  • Interests
    :dance:

Recent Profile Visitors

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

Major . Mr3b's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. i am trying to create a voice mode on teams but i get this error but i don't know why can anyone help please?, thanks. Bad 'broadcastTo' pointer @ 'setPlayerVoiceBroadcastTo'(2) here is my code ( only server ) function getTeamPlayers(target) local teamTable = {} if not (Team.isInTeam(target)) then return false end for i, player in ipairs(getElementsByType("player")) do if (Team.inSameTeam(target, player)) then if (player ~= target) then if (getElementData(target, "radio")) then table.insert(teamTable, player) end end end end return teamTable end setTimer(function() for i, player in ipairs(getElementsByType("player")) do setPlayerVoiceBroadcastTo(player, getTeamPlayers(player)) end end, 1150, 0) function radioON(thePlayer) setElementData(thePlayer, "radio", true) end function radioOFF(thePlayer) setElementData(thePlayer, "radio", false) end function bindKeyJoin() bindKey(source, "/", "down", radioON) bindKey(source, "/", "up", radioOFF) end addEventHandler('onPlayerJoin', root, bindKeyJoin) function bindKeyOnStart() for i, player in pairs(getElementsByType("player")) do bindKey(player, "/", "down", radioON) bindKey(player, "/", "up", radioOFF) end end addEventHandler('onResourceStart', getResourceRootElement(getThisResource()), bindKeyOnStart)
  2. Hello, I am now creating a downloading screen in my server and I was wondering how can I know the name of the file being downloaded, and of course I use onClientTransferBoxProgressChange If you know the answer please reply.
  3. Try This addEvent("textoComprado", true) addEventHandler("textoComprado", root, function() local model = getElementModel(source) local charID = exports.players:getCharacterID(source) if (exports.sql:query_free("UPDATE characters SET skin= '" .. model .."' WHERE characterID = '"..charID.."'")) then -- ..... end end )
  4. This for build car --Server Side function checkAccess(thePlayer) if isPlayerInACL(thePlayer, "") then local veh = createVehicle(vehid, x, y, z, 0, 0, rotz) if (veh) then outputChatBox("Done") end else outputChatBox("Access Denied!") end end addCommandHandler("createveh", checkAccess And This for Enter car --Server Side vehs = { [598]=true, [596]=true, [597]=true, [599]=true } function enterVehicle ( theVehicle, seat, jacked ) --when a player enters a vehicle if ( vehs[getElementModel ( theVehicle )] ) and ( not isPlayerInACL(source, "") ) then -- if the vehicle is one of 4 police cars, and the skin is not a police skin removePedFromVehicle ( source ) -- force the player out of the vehicle end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), enterVehicle ) Source : https://wiki.multitheftauto.com/wiki/OnPlayerVehicleEnter https://wiki.multitheftauto.com/wiki/IsPlayerInACL
  5. Major . Mr3b

    Problem

    did you try it ?
  6. Do you mean a dedicated group that can ride or build a car?
  7. Major . Mr3b

    Problem

    Look at this
×
×
  • Create New...