Jump to content

Mσнαмα∂ Hєℓιѕн

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by Mσнαмα∂ Hєℓιѕн

  1. azizam english i ha dar javabe chiz haye alaki nemigan what migan yes mesle to bi adab nistan ke
  2. bayad tu client addEventHandler besazi bad to server side triggerClientEvent use koni!
  3. how ? i don't know work with internal database functions you can help me?
  4. hi guys. this is my mysql connection script : function connectToDatabase(res) MySQLConnection = mysqlconnect(hostname, username, password, database, port) if (not MySQLConnection) then if (res == getThisResource()) then cancelEvent(true, "Cannot connect to the database.") end return nil end return nil end addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), connectToDatabase, false) and errors is : attempt to call global 'mysqlconnect' (a nil value) plz debug my database connection script
  5. no body can enter Police Vehicles no i dont have any errors!
  6. hi guys im maked a playSound script when hit marker but not working! server side function hitMarker (thePlayer) setElementPosition(thePlayer, 288.89401, 169.30408, 1007.17188) setElementInterior(thePlayer, 3) triggerClientEvent("onMarkerHit", markerJoin, markerSound) end addEventHandler("onMarkerHit",markerJoin,hitMarker) client side function markerSound (thePlayer) local sound = playSound("sound.mp3") setSoundVolume(sound, 1) end addEventHandler("onMarkerHit", markerJoin, markerSound) what is this problem ?
  7. I want to make only members of the police cops be able to board the policeVehicles!
  8. hi guys i have a problem for vehicle factions! local policeVehicles = { {597, 1645.125, -1367.453125, 17.443872451782}, {597, 1641.125, -1367.453125, 17.443872451782}, {597, 1637.125, -1367.453125, 17.443872451782}, {597, 1633.125, -1367.453125, 17.443872451782}, {597, 1629.125, -1367.453125, 17.443872451782}, {597, 1625.125, -1367.453125, 17.443872451782}, {447, 1680.181640625, -1418.8740234375, 85.044067382813}, {447, 1680.181640625, -1400.8740234375, 85.044067382813}, {447, 1680.181640625, -1382.8740234375, 85.044067382813}, } local police = "Police" addEventHandler("onResourceStart",resourceRoot,function() for _, v in ipairs(policeVehicles) do local veh = createVehicle(v[1],v[2],v[3],v[4],0,0,v[5]) -- spawn a car setElementData(veh,"carFaction",police) -- set car's faction end end) function vh ( player, seat ) if seat == 0 then -- allow to sit only next to the driver if getElementData(source,"carFaction") == police then -- check car if getElementData(player,"faction") == police then -- check player cancelEvent() outputChatBox ( "#ffff00Shoma Dar Faction F.B.I Nistid!", player,240,155,15,true) end end end end addEventHandler ( "onVehicleStartEnter", getRootElement(), vh ) what is this problem ? all players can enter Police Vehicle @JeViCo
  9. hey @JeViCo ! you can debug my find player script ? ( /find <playerName )
  10. hi guys how to remove player from ElementData "faction" Police ? im searched for script but not found plz give me this function
  11. your script is working but player can't G to vehicle!
×
×
  • Create New...