
xUltimate
Members-
Posts
92 -
Joined
-
Last visited
Everything posted by xUltimate
-
You need to go into the SQL database, open up wcf1_group and you need to add the faction in there first, and then go in game and do "/createfaction [type] [name of faction in SQL]"
-
Well I don't know where I got it then because it was in my resources. The voice branch is still in development, you can't hear eachother atm. Oh.
-
Well I don't know where I got it then because it was in my resources.
-
lol. i was typing it while looking at the server i meant to add the Voice in it.
-
I downloaded MTA 1.1-unstable and when I start the voice resource I get this error ERROR: voice/sDefaultChannelManager.lua:33: attempt to call global 'setPlayerBroadcastTo' (a nil value) Heres the part where its getting the error function setPlayerInternalChannel ( player, element, muted ) if playerChannels[player] == element then return false end playerChannels[player] = element channels[element] = player setPlayerVoiceBroadcastTo( player, element, muted ) --Line 33 return true end
-
Are you getting any errors?' Did you set it up right? Provide more information buddy.
-
Cant find out what's wrong with this, can someone help me? addCommandHandler( "duty", function( player, commandName ) local faction = tonumber( faction ) local duty = { } if factions[ SFPD ] then if duty = false then duty[ player ] = true setPlayerNametagColor( player, 0, 0, 255 ) else if duty = true then duty[ player] = false setPlayerNametagColor( player, 255, 255, 255 ) end else if factions[ SFEMS ] then if duty = false then duty[ player ] = true setPlayerNametagColor( player, 255, 0, 0 ) else if duty = true then duty[ player] = false setPlayerNametagColor( player, 255, 255, 255 ) end end end, true )
-
The ID is the ID (Value) in interiorpositions.lua (interiors resource). So if you want a bank you need to add this in the lua. bank = { x = 2315.952880, y = -1.618174, z = 26.742187, interior = 0 },
-
Sorry for double post. Can anyone help?
-
It was apart of this base GM I downloaded, just found out I could do /createint but I believe its this code local function loadInterior( id, outsideX, outsideY, outsideZ, outsideInterior, outsideDimension, insideX, insideY, insideZ, insideInterior, interiorName, interiorPrice, interiorType, characterID, locked, dropoff ) local outside = createColSphere( outsideX, outsideY, outsideZ, 1 ) setElementInterior( outside, outsideInterior ) setElementDimension( outside, outsideDimension ) setElementData( outside, "name", interiorName ) -- we only need it set in case there's really something for sale if interiorType ~= 0 and characterID <= 0 then setElementData( outside, "type", interiorType ) setElementData( outside, "price", interiorPrice ) end local inside = createColSphere( insideX, insideY, insideZ, 1 ) setElementInterior( inside, insideInterior ) setElementDimension( inside, id ) colspheres[ outside ] = { id = id, other = inside } colspheres[ inside ] = { id = id, other = outside } interiors[ id ] = { inside = inside, outside = outside, name = interiorName, type = interiorType, price = interiorPrice, characterID = characterID, locked = locked, blip = not locked and outsideDimension == 0 and not getElementData( outside, "price" ) and createBlipEx( outside, inside ), dropoff = dropoff } end
-
I fixed it guys but now im stuck with something. I created a actual interior, but when a car goes through it it sets the dimension but not the pos for yourself and the car, same with when you leave the interior in a car.
-
Ok, but now im stuck on how do change that to detect if there in a certain range
-
varez, what I mean is somewhat like this: SA-MP: it was IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy) And: IsPlayerInVehicle(playerid,vehicleid) Now how can I use those functions in MTA SA?
-
I want to find out how to detect there position, if there in a area, and if they are in a vehicle.
-
Ok so I'm trying to make it so it detects if there in a certain area and then have them teleport it in to another area, but I also want it to detect if there in a vehicle that they teleport to a different area. I can't find out the certain functions for it (Yes I am new to LUA/MTA.) Here is the map info: <map edf:definitions="editor_main"> <object id="object (info) (1)" doublesided="false" model="1239" interior="0" dimension="0" posX="-2566.5703125" posY="553.54553222656" posZ="13.662875175476" rotX="0" rotY="0" rotZ="0" /> <object id="object (genint_warehs) (1)" doublesided="false" model="14784" interior="0" dimension="0" posX="-2558.8142089844" posY="517.38647460938" posZ="635.09411621094" rotX="0" rotY="0" rotZ="0" /> <object id="object (cn2_savgardr2_) (5)" doublesided="false" model="16501" interior="0" dimension="0" posX="-2530.3532714844" posY="551.5390625" posZ="628.78533935547" rotX="0" rotY="0" rotZ="0" /> <object id="object (arrow) (1)" doublesided="false" model="1318" interior="0" dimension="0" posX="-2533.4072265625" posY="551.16674804688" posZ="626.20599365234" rotX="0" rotY="0" rotZ="0" /> <object id="object (arrow) (2)" doublesided="false" model="1318" interior="0" dimension="0" posX="-2547.2822265625" posY="551.98864746094" posZ="626.19024658203" rotX="0" rotY="0" rotZ="270" /> </map> info is the enter area, arrow 1 is the area where players enter/leave the building. arrow 2 is the vehicle enter/exit. Please can someone help me.
-
Anytime I connect to a server it freezes when the download is complete and disconnects. EDIT: Fixed, I just updated MTA.